<!-- BEGIN: center-->
<script language="JavaScript">
	function doDeleteMovie(movie_id){
		if(confirm('Ban co thuc su muon xoa movie nay?') == true){
			window.location = '?mod=admin&act=movies&del_movie_id='+movie_id;
		}
	}
	function changeCate(form) { 
		var index=form.movie_cate.selectedIndex
		if (form.movie_cate.options[index].value != "0"){
			location='?mod=admin&act=movies&cid='+form.movie_cate.options[index].value;
		}
	}
</script>
<table cellpadding="3" cellspacing="3" width="100%" border="0">
	<tr>
		<td colspan="7"><p align="center" style="font-size: 1.6em;">Movies</p></td>
	</tr>
	<tr>
		<td align="left" colspan="3">
			<FORM NAME="form1">
			<select name="movie_cate" onchange="changeCate(this.form);">
				<option>-- list all movies --</option>
				<!-- BEGIN: list_select_option_movie_cate -->
				<option value="{list_select_option_movie_cate.cate_id}" {list_select_option_movie_cate.cate_selected}>{list_select_option_movie_cate.cate_name}</option>
				<!-- END: list_select_option_movie_cate -->
			</select>
			</FORM>
		</td>
		<td colspan="6" align="right"><a href="?mod=admin&act=movies-task">Add New</a></td>
	</tr>
	<tr>
		<td>No</td>
		<td>Movie Name</td>
		<td>Category</td>
		<td>Price</td>
		<td>Status</td>
		<td>&nbsp;</td>
		<td>&nbsp;</td>
	</tr>
	<!-- BEGIN: list_admin_movie-->
	<tr>
		<td>{list_admin_movie.iCountAdminMovie}</td>
		<td>{list_admin_movie.movie_name}</td>
		<td>{list_admin_movie.cate_name}</td>
		<td>${list_admin_movie.movie_price}</td>
		<td>{list_admin_movie.movie_status}</td>
		<td><a href="{list_admin_movie.movie_edit_link}">Edit</a></td>
		<td><a href="#" onclick="doDeleteMovie({list_admin_movie.movie_id});">Delete</a></td>
	</tr>
	<!-- END: list_admin_movie-->
</table>
<!-- END: center-->